export default class imgdata {
  constructor(ctx, source, x, y, w, h) {
    if (typeof (source) == "object") {
      this.obj = ctx.createImageData(w, h)
    } else if (typeof (x) == "number") {
      this.obj = ctx.createImageData(x, y, w, h)
    } else {
      this.obj = ctx.createImageData(w, h)
    }
  }

}